/*    */ package com.zimbra.cs.mailclient.util;
/*    */ 
/*    */ import java.security.cert.X509Certificate;
/*    */ import javax.net.ssl.SSLContext;
/*    */ import javax.net.ssl.TrustManager;
/*    */ import javax.net.ssl.X509TrustManager;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class SSLUtil
/*    */ {
/*    */   public static SSLContext getDummySSLContext()
/*    */   {
/* 36 */     TrustManager tm = new X509TrustManager()
/*    */     {
/*    */       public void checkClientTrusted(X509Certificate[] cert, String authType) {}
/*    */       
/*    */       public void checkServerTrusted(X509Certificate[] cert, String authType) {}
/*    */       
/*    */       public X509Certificate[] getAcceptedIssuers()
/*    */       {
/* 44 */         return null;
/*    */       }
/*    */     };
/*    */     try {
/* 48 */       SSLContext sc = SSLContext.getInstance("SSL");
/* 49 */       sc.init(null, new TrustManager[] { tm }, null);
/* 50 */       return sc;
/*    */     } catch (Exception e) {
/* 52 */       throw new IllegalStateException("Could not create SSL context", e);
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailclient/util/SSLUtil.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */